package com.service;

import java.util.List;

import com.dao.UserDao;
import com.domain.User;

public class UserService {
	
	 private UserDao ud=new UserDao();
	   
	   
	   public  boolean  addUser(User date) {
		   return ud.addUser(date);
		   
	   }
	   
	   public User findById(User date) {
		   return ud.findById(date);
	   }
	   public boolean update(User date) {
		   return ud.update(date);
	   }
	   public User findByName(User date) {
		   return ud.findByName(date);
	   }
	   public boolean update1(User date) {
		   return ud.update1(date);
	   }

}
